import 'dart:convert';

StudentActivityDto studentActivityDtoFromJson(String str) =>
    StudentActivityDto.fromJson(json.decode(str));

String studentActivityDtoToJson(StudentActivityDto data) =>
    json.encode(data.toJson());

class StudentActivityDto {
  StudentActivityDto({this.activities, this.entry, this.from, this.to});

  List<String>? activities;
  List<String>? entry;
  int? from;
  int? to;

  factory StudentActivityDto.fromJson(Map<String, dynamic> json) =>
      StudentActivityDto(
        activities: List<String>.from(json["activities"].map((x) => x)),
        entry: List<String>.from(json["entry"].map((x) => x)),
        from: json["from"],
        to: json["to"],
      );

  Map<String, dynamic> toJson() => {
        "activities": activities == null
            ? null
            : List<String>.from(activities!.map((x) => x)),
        "entry": entry == null ? null : List<String>.from(entry!.map((x) => x)),
        "from": from,
        "to": to
      };
}
